#include"myfile.h"

int main()
{
    _FILE *fp = _fopen("test.txt", "w");
    if(fp == NULL) return 1;

    const char *msg = "hello world";

    _fwrite(fp, msg, strlen(msg));

    fflush(fp);

    _fclose(fp);

    return 0;
}
